In the configuration file (.CNF), the BUS section must be declared so that you have the hardware resources required for the implementation of the OOPOS2 device.
There must be at least a bi-directional meter. The device can also use an interrupt input and a line for preset search functions.
In the INTDEVICE section of the .CNF file must be add the following definition:
;--------------------------------- ; Internal device declaration ;--------------------------------- INTDEVICE <device name> OOPOS2 TCamp IQCTL ILine IAZero OutAva OutInd OutDir OutMov OutRal OutFre
![]() | It is necessary that each definition are present on the same line. In case you do not want to assign a resource, for example OutFre, You must always enter in the appropriate field the string X.X. |
|---|
where:
| <nome device> | The name assigned to the device. |
| OOPOS2 | Keyword that identifies the on/off positioner device. |
| TCamp | Sampling time device (1÷255 ms). |
| IQCTL | Bidirectional incremental counter address. |
| ILine | Interrupt line dedicated to the zero pulse. |
| IAZero | Input to enable the capture of zero-pulse. |
| OutAva | Address of output used as forward output. |
| OutInd | Address of output used as backward output. |
| OutDir | Address of output used as direction output. |
| OutMov | Address of output used as motion output. |
| OutRal | Address of output used as slowdown output. |
| OutFre | Address of output used as brake output. |
;-------------------------------- ; Internale device declaration ;-------------------------------- INTDEVICE Axis OOPOS2 0004 2.CNT01 1 2.IN01 2.OUT01 2.OUT02 X.X X.X 2.OUT3 X.X
The digital outputs for managing the placement are enable/disable depending on the position of the axis (counter), appropriately controlled by the device depending on the parameterization.
The ON/OFF positioning can executed in both directions (forward/backward) with the possibility of retrieving games, for deletion of any mechanical backlash.
The accuracy with which was built the mechanics is critical to the outcome of the placements. It is impossible to find, on the placements, the precision of the motion of bodies if the moving parts have loose backlash of the tenth. Also on placements of vertical axes very heavy (for example a press or vertical cutter), the inertia of movement upwards is less than the inertia of movement down.
In these and other situations implementation of recovery backlash in positioning significantly improves accuracy.
![]() | The positioning is always concluded in the same direction. For example, whereas placements with recovery forward backlash (see Picture 1), for both forward and reverse positioning, the movement of the axle ends always moving from left to right (forward). |
|---|
| Picture 1: positioning diagram with recovery backlash. |
![]() |
In the Picture 2 Describes the various stages of a ON/OFF placement forward without the implementation of recovery backlash.
The excitement of moving outputs (in this casa the forward output) moving the axis; increasing the count acquired and the appropriate device parameters involve the activation of several resignations to motion management, up to the end of placement and the activation of tolerance output (positioning report concluded correctly).
| Picture 2: forward positioning without the recovery backlash. |
![]() |
In the Picture 3 describes the various stages of a ON/OFF forward placement with the implementation of recovery backlash in backward direction.
The activation of (forward / backward) outputs moving the axis; the increasing of the count acquired and the appropriate device parameters involve the activation of other outputs to the motion management, up to the end of placement and activation of the output of tolerance (positioning report concluded correctly).
| Picture 3: forward positioning with backward recovery backlash. |
![]() |
For complete understanding of this description you should have read the previous paragraph (FORWARD POSITIONING WITHOUT RECOVERY BACKLASH).
The OOPOS3 device needs some necessary hardware resources, as a bidirectional counter input (CNTxx) and the digital outputs.
The following procedure is used to test the counter input.
INIT AxisWAIT Axis:st_initAxis:cntratio = 100000Axis:posit = 0![]() | Before moving the axis, check the proper operation of emergency equipment and protection. |
|---|
The following procedure is used to verify the operation of the digital outputs of forward, backward and slowdown moving the axis with the manual commands of the device.
To continue, verify that the Axis device is initialized and with the correct Asse:cntratio value.
Axis:maxpos = 999999Axis:minpos = -999999MANFFW AxisWAIT NOT Axis:st_still AND Axis:st_movfwdAxis:posit it increments, then stop the movement with the STOP command.STOP AxisMANFBW AxisWAIT NOT Axis:st_still AND Axis:movbwd
In some applications you are prompted to place a large number of axes by moving a single axis at a time. The choice may be to install one drive which depending on the axis to be placed electrically connects the engine interested in positioning; the transducer is always bound to its axle.
The EPICPOS parameter allows you to control access to the DAC device using the REGON and REGOFF commands. In this way through the QCL application defines a set of device many axes to be placed; in the definition, all devices use the same resource DAC (IOutA).
Normally all devices must be in the st_regoff = 1 state so you will not have access to the DAC. Before you start positioning, with the REGON command, the device is brought to the st_regoff = 0 state. It's execute the placement and to the completion, the device is returned in the st_regoff = 1 state with REGOFF command. For no reason two devices simultaneously must be found in the st_regoff = 0 state.
When the device is placed in the regoff position, the analog output remains fixed at the last voltage value defined before the REGOFF command.
![]() | Changing the quota is accepted only if the new position is reached with the use direction and if the axis is not already in slowdown phase for to reach the quota previously set. |
|---|
In some applications you are prompted to define the target quota during placement, depending to external events to the device. With this feature you can write in the setpos parameter even with current placements.
When positioning you can also change the value of the count posit. This function is usually used when a device must, under special conditions, continue a speed profile for a very long time, exceeds the time axis takes to reach the quota limit (maxpos or minpos).
Axis:posit decreases, then stop the movement with the STOP command.STOP Axis2.OUT02, don't enable, check the electrical connection.MANSFW AxisWAIT NOT Axis:st_still AND Axis:st_movfwd AND Axis:st_movslowAxis:posit is increments, then stop the movement with the STOP command.STOP Axis2.OUT03 resource, does not turn on, check the electrical connection.To Introduce the locating dimensions in desired unit (Um) You must multiply the pulses generated by the transducer for the multiplicative ratio (cntratio); this parameter must be between the values: 374 < cntratio < 400000.
Multiplicative coefficient calculation As an example, consider introducing dimensions in mm; the unit of measurement (Um) will be in mm.
If the space of 1000 mm is accomplished with 20000 pulses, the Axis:cntratio variable should be set to:
Axis:cntratio = Um x 100000 / pulse_numbers
that is:
Axis:cntratio = 1000 x 100000 / 20000 = 5000
Multiplicative value of 100000 adapt the result of dividing to the format in which is expressed the variable Axis:cntratio.
This is an integer number but expresses a value with a decimal point at the fifth significant digit. To write Axis:cntratio=100000 means setting a ratio Um/pulse_numbers equal to 1.00000.
Axis:cntratio = 100000Axis:posit = 0Axis:cntratio = Sp * 100000 / Axis:positFor work properly the OOPOS2 device, you must enter a few basic parameters.
Axis:minpos = xxx (xxx = minimum axis value expressed in Um).Axis:maxpos = yyy (yyy = maximum axis value expressed in Um).Axis slowpos = zzz (zzz = slowdown axis value expressed in Um).Axis:slowdly = ttt (ttt = slowdown time in s/100).Axis:tollp = tpx (tpx = positive tolerance value expressed in Um/10).Axis:tolln = tnx (tpn = negative tolerance value expressed in Um/10).Axis:tinv = inversion time expressed in s/100Axis:ninert = 1Axis:inertmode = 1Axis:toldly = tdly (tdly = activation time delay tolerance expressed in s/1000).In the ON/OFF placements the space of slowdown should be long enough to bring the axis at the slow speed (of end placement), which enter the inertial range and conclude your placement in tolerance. It is essential that the speed at the time of entry in the inertial range is always equal, so that inertia is repetitive and continuous recalculations are avoided that would cause an inaccuracy in positioning.
![]() | Correct slowdown quota: before stopping the axis moves at low speed, facilitating the stop without compromising the execution time of positioning |
|---|
![]() | Slowdown quota is too long: This allows the axis to end positioning by moving the slow speed, but is maintained for too much space, extending considerably the time of positioning. |
|---|
![]() | Slowdown quota is too short: the axis approaches at the quota with a speed too high to allow the mechanical rapid stop; the succession of the system compromises the placement, stopping the axle out of the tolerance range set. |
|---|
In some cases the OOPOS3 device must manage the axis where positioning speed is variable. For this reason the OOPOS2 device has a system of automatic calculation of the slowdown quotaq, so the speed of end placement and the inertia value are repetitive, regardless of the speed of the axis and the value of inertia are repetitive, regardless of the speed of the axis..
The OOPOS2 device has two methods (selected by the slowtype parameter), to calculate the slowdown:
To calculate the slowdown value you need setting to acquire the axis speed.
The unit of speed is in function of the following variables:
Unitvel parameter Defines if the speed values are expressed in Um at the minute (unitvel = 0) or in Um at the second (unitvel = 1).
Decpt parameter Whether to set the values of speed in multiples of the fundamental units Um. For example, if the fundamental unit of measure Um=mm, and unitvel=1 you get the speed indicator in the vel variable:
Theoretical method
you have to apply the formula:
Speed = Frequency * ….
Pratical method It's based on the speed reading detected by the device in the vel parameter giving the drive a known voltage. If driving permits, provide the maximum working voltage axis and then read the value in the vel parameter; if you provided a lower voltage, the maximum speed will be proportional to the voltage supplied.
Enter the value of the maximum speed detected in maxvel parameter.
The device calculates the slowdown based on the formula:
Slowdown = (Maximum slowdown x Speed)/Maximum speed
![]() | The calculation of the slowdown, as evidenced by the chart, one of the two maxslow or minslow limits cannot exceed. |
|---|
where:
Maximum slowdown = corresponds to the maxslow variable.
Minimum slowdown = corresponds to the minslow variable.
Calculated slowdown = corresponds to the exeslow variable.
Maximum speed = corresponds to the maxvel variable.
Instantaneous speed = corresponds to the vel variable.
The device auto-calculates the slowdown based on the formula:
Slowdown = (Maximum slowdown x Speed2)/Maximum speed
where:
Maximum slowdown = corresponds to the maxslow variable.
Minimum slowdown = corresponds to the minslow variable.
Calculated slowdown = corresponds to the exeslow variable.
Maximim speed = corresponds to the maxvel variable.
Instantaneous speed = corresponds to the vel variable.
The values of inertia can be introduced directly by the operator or automatically calculated from the device; the mode is chosen with setting the inertmode parameter.
The device manage the subdivision of the axis path (between the minpos and maxpos) in more same bands; the number of bands is defined by the ninert parameter. This way you can have inertia as a function of the band within which concludes the positioning.
By setting the dobiner = 0 parameter, the device manage a unique inertia value independently of direction of movement (forward or backward).
By setting the dobiner = 1 parameter, the device manage two inertia values for each band, one for the forward direction and another for the backward direction. This mode is applicable, for example, when you move the vertical axis.
For storing inertia, are used the iner01÷ iner08 parameters (in the event that dobiner = 0) or the iner01÷ iner16 parameters (if dobiner = 1):
| dobiner = 0 | dobiner = 1 | |
|---|---|---|
| iner01 | Inertia 1 band | Forward intertia 1 band |
| iner02 | Inertia 2 band | Backward intertia 1 band |
| iner03 | Inertia 3 band | Forward intertia 2 band |
| iner04 | Inertia 4 band | Backward intertia 2 band |
| iner05 | Inertia 5 band | Forward intertia 3 band |
| iner06 | Inertia 6 band | Backward intertia 3 band |
| iner07 | Inertia 7 band | Forward intertia 4 band |
| iner08 | Inertia 8 band | Backward intertia 4 band |
| iner09 | n.u. | Forward intertia 5 band |
| iner10 | n.u. | Backward intertia 5 band |
| iner11 | n.u. | Forward intertia 6 band |
| iner12 | n.u. | Backward intertia 6 band |
| iner13 | n.u. | Forward intertia 7 band |
| iner14 | n.u. | Backward intertia 7 band |
| iner15 | n.u. | Forward intertia 8 band |
| iner16 | n.u. | Backward intertia 8 band |
By definition, the forward inertia is used only forward in movements (forward output enabled) while, the backward inertia, is used only for backward movements (backward output enabled).
The calculation of inertias about the various bands can be done automatically by the device; at the end of each placement, the device quantify the value of inertia for use in subsequent placements that will end in the same band.
You can define a set of customizations related to automatic recalculation of inertia.
With the setting of this parameter is used to define when the device execute the recalculating of inertia; there are two methods:
The preset searchb is a procedure to synchronize the value of the posit parameter with the actual position of the axis. Consists to load a value in the counter (previously stored) at the time of acquisition of transducer zero pulse; you can execute the preset search with a transducer without the zero pulse, but you need an input (cam or sensor) by 'enabling zero-pulse transducer'.
Formerly to the preset search the counter acquired can have any value and the axis can be located anywhere. For execute the upload of preset quota, the axis you must direct to the “enabling zero-pulse transducer” input.
The initial direction of motion is defined by prsdir parameter:
prsdir = 0 the axis will start getting forward.
prsdir = 1 the axis will start getting backward.
![]() | During the preset search the software the maxpos and minpos limits are disabled. |
|---|
The preset search start is given from the PRESET command.
If during the preset search is given again the PRESET command, the direction of motion of the axis is reversed, preserving the operation of the preset search direction.
It should be noted that the presets quota (prspos) must always be between the minimum and maximum quotas and after the load of the preset quota, the axis is automatically positioned to the preset quota.
![]() | The zero pulse enable input has a hardware filter which delays the acquisition and so influence the precision of the loading. Axis speed should be low enough to allow the acquisition of the input. |
|---|
The axis towards to the sensor connected to the enable input zero pulse with a normal placement speed. The st_prson state reports that the preset procedure is in progress. When, during the path, the axis bump into the enabling zero-pulse transducer input, reverses the direction and takes slow speed.
To the disabling of enabling zero-pulse transducer input is loaded the preset quota on the counter (posit parameter).
The axis stop, the st_prson state is disabled and the st_prsok state is aenabled to signal the end of search. This State remains active until the starting of a new presets procedure. When the system is power up this state is always to zero (Picture 1).
| Picture1: preset load using the only enabling cam. |
![]() |
![]() | The acquisition is execute on interrupt input then the speed of the axis is not determinative. However, you must verify that the zero pulse activation time is long enough to be captured by the card. |
|---|
The axis towards the sensor connected to input enabling zero-pulse with normal positioning speed. The st_prson state reports that the preset procedure is in progress. When, during the path, the axis mbump into the enabling zero pulse transducer input, reverses the direction and takes the slow speed.
To disable the zero pulse enable input is enabled the reading of the first zero-pulse provided by the transducer and at the time of the acquisition of this signal, is loaded the preset quota in the counter (posit parameter).
The axis stops, the st_prson state is disabled and the st_prsok state is enabled to signal the end of search. This state remains active until the starting of a new procedure of presets. When the system is power up this State is always zero (Picture 2).
| Picture 2: loading presets using cam and zero pulse enable transducer. |
![]() |
With this procedure the preset search is not enabled. The command to load the preset quota is provided by the activation of the zero pulse enable input and is enabled the st_prsok state.
![]() | The command can be sent only if the axis is stopped, condition of st_still = 1. |
|---|
The device always shows the absolute position of the axis; to execute the incremental placements it is necessary to have a tool to subtract or add some value to the count (posit) without introducing errors. The change counter can be execute even with a direct writing to the new value in the posit parameter.
Wanting to steal 100 units of measure from the count you can:
Axis:posit = Axis:posit - 100
![]() | The Changing of the value resolution (cntratio) or write to the posit variable, causes the reset of the remnants of the conversion. |
|---|
This operation introduces an error because it imposes the location “posit = -100”, when the axis could have an intermediate position between a unit of measurement and subsequent (example 100.3). This fraction (0.3) is lost and the repetition of these steps results in the accumulation of a considerable error.
The DELCNT command sum to the count an amount equal to the delta parameter without losing the fraction part of the position:
Axis:delta = -100
DELCNT Axis
The DELCNT command can be sent only with stationary axis (st_still=1)
The reading of the position of the axis is of 2 units and is located at point A. To sum the count posit three units.
With instructions:
Axis:posit = Axis:posit + 2
the axis takes the new position B.
With instructions:
Axis:delta = 2
DELCNT Axis
It's reached the point C.
Note that with the first instructions the axis took a delta less than 3 units and then introduced an error.
If you need to send the succession of DELCNT commands, It is convenient to calculate the quantity to be summed and send at once the command; otherwise beware not to send subsequent commands without a read statement on device parameter.
Asse:delta = 3 DELCNT Asse WAIT Asse:st_init Asse:delta = 40 DELCNT Asse
Una scrittura del tipo:
Asse:posit = 1000 Asse:delta = - 100 DELCNT Asse DELCNT Asse ...
non assicura che il valore di posit sia di 800, come ci si aspetterebbe da due sottrazioni consecutive, mentre è possibile che sia di 900 per la sovrapposizione dei due comandi. La scrittura diventa quindi:
Asse:posit = 1000 Asse:delta = - 100 DELCNT Asse WAIT Asse:st_init DELCNT Asse WAIT Asse:st_init ...
Con lutilizzo del device OOPOS2 le uscite di movimento sono ad uso esclusivo del device; pertanto
non possono essere utilizzate da altri device o dallapplicativo.
Il comando di REGOFF permette di mettere a disposizione tali risorse, disabilitandone laggiornamento
da parte del device OOPOS2. Questa condizione, verificata con lo stato st_regoff = 1,
pone il device in uno stato di attesa in cui comunque continua ad aggiornare la posizione dellasse
(conteggio acquisito).
Il comando di REGON ripristina le normali condizioni riassegnando al device laggiornamento
delle uscite.
Per evitare conflitti e malfunzionamenti, deve necessariamente essere attivo un solo device per ogni gruppo di uscite di movimento.
Nelle applicazioni in cui non è necessario movimentare contemporaneamente più assi luso dei comandi REGON/REGOFF permette di utilizzare sempre le stesse uscite di movimento risparmiando risorse hardware.
Le procedure fin qui descritte hanno permesso di completare le fasi di definizione delle risorse
hardware necessarie al device, di verifica dei collegamenti elettrici, di impostazione dei parametri
fondamentali del device.
Ora é possibile eseguire una semplice movimentazione dellasse.
Asse:setpos = quota di posizionamento (in Um compresa tra minpos e maxpos).START AsseQuesto sistema consente, se la risoluzione del trasduttore lo permette, di aggiustare e verificare il posizionamento di tipo On/Off con una risoluzione 10 volte superiore a quella impostata nel parametro cntratio.
Lintroduzione dei parametri relativi alle inerzie (iner01 ÷ iner16), alle tolleranze (tolp e toln)
ed allo spessore utensile (tool), viene proposta con una cifra in più, in modo da poter introdurre
il dato con una precisione 10 volte maggiore.
Per un buon funzionamento del sistema QPS, il parametro cntratio deve essere inferiore a 40000;
se il coefficiente moltiplicativo è compreso tra 40001 e 399999 linfluenza dellultima cifra
diminuirà gradatamente fino a cessare completamente quando tale coefficiente è pari a 400000.
Il sistema QPS viene introdotto anche in fase di lettura dei dati sopradescritti.
Gli esempi sono riferiti ad un sistema di posizionamento con precisione del millimetro.
Il nome del parametro, stato o comando viene riportato alla sinistra della tabella.
R
Indica se il relativo parametro o stato è ritentivo (al momento dellinizializzazione del device mantiene lo stato precedentemente definito), oppure lo stato che assume al momento dellinizializzazione del device.
Se il device non necessita di inizializzazione il campo R indica il valore che il parametro o stato assume allaccensione della scheda.
R = Ritentivo
0 = Al momento dellinizializzazione del device il valore viene forzato a zero.
1 = Al momento dellinizializzazione del device il valore viene forzato a uno.
- = Al momento dellinizializzazione del device viene presentato il valore significativo.
D
Indica la dimensione del parametro.
F = Flag
B = Byte
W = Word
L = Long
S = Single Float
Vengono descritte tutte le condizioni necessarie affinchè il parametro sia considerato corretto o perchè il comando venga accettato.
In alcuni casi vengono specificati dei valori limite per laccettazione del parametro: se vengono
introdotti dei valori esterni ai limiti impostati, il dato viene comunque accettato; pertanto
devono essere previsti opportuni controlli dellapplicativo tali da garantire il corretto funzionamento.
Per lesecuzione di un comando, tutte le relative condizioni devono necessariamente essere
soddisfatte; in caso contrario il comando non viene inviato.
A
Indica la modalità di accesso.
R = Read (lettura).
W = Write (scrittura).
RW = Read / Write.
I comandi sono stati ordinati con priorità decrescente. Ad esempio, in caso di contemporaneità dei comandi STOP ed START, viene acquisito per primo il comando STOP.
| Nome | Condizioni | Descrizione |
|---|---|---|
| INIT | st_init = 0 | Initialization Comando di inizializzazione device. Se il device non é inizializzato non vengono eseguiti i calcoli relativi all'asse e quindi rimane inattivo. All'accensione è possibile scaricare tutti i parametri in DPR; successivamente, con comando INIT l'asse verrà inizialiazzato, eseguendo i calcoli una sola volta. Attiva lo stato st_init. |
| START | st_init = 1 st_regoff = 0 st_still = 1 | Start Comanda il posizionamento alla quota setpos e velocitá setvel. |
| STOP | st_init = 1 st_regoff = 0 st_emrg = 0 | Stop Interrompe l'eventuale posizionamento in corso dell'asse. La fermata dell'asse avviene seguendo la rampa di decelerazione in uso. L'asse rimane in reazione di spazio. |
| CNTLOCK | st_init = 1 | Counter lock Blocca l'acquisizione del conteggio asse anche se il trasduttore continua ad inviare i segnali. In questa fase l'eventuale spostamento dell'asse non viene rilevato. Disabilita il caricamento della quota di preset sul conteggio. Attiva lo stato st_cntlock |
| CNTUNLOCK | st_init = 1 | Counter unlock Sblocca il conteggio dell'asse. Viene ripresa la lettura dei segnali inviati dal trasduttore e l'aggiornamento del conteggio. Disattiva lo stato st_cntlock. |
| CNTREV | st_init = 1 | Counter reverse Consente di invertire le fasi del trasduttore all'interno della scheda. Viene quindi invertito il senso del conteggio (incremento/decremento). Attiva lo stato st_cntrev. |
| CNTREV | st_init = 1 st_still = 1 | Counter reverse Consente di invertire le fasi del trasduttore all'interno della scheda. Viene quindi invertito il senso del conteggio (incremento/decremento). Attiva lo stato st_cntrev. |
| PRESET | st_init = 1 st_regoff = 0 | Preset Start ricerca preset asse. Viene dato inizio alla procedura di ricerca di preset con le modalità impostate con i parametri prsmode e prsdir. Se la ricerca di preset è già in esecuzione, il comando esegue l'inversione del senso di ricerca. Attiva lo stato st_prson e disattiva lo stato st_prsok. |
| MANSFW | st_init = 1 st_regoff = 0 posit < maxpos | Manual slow forward Posizionamento manuale avanti lento. Vengono eccitate le uscite di avanti e di rallentamento. |
| MANSBW | st_init = 1 st_regoff = 0 posit > minpos | Manual slow backward Posizionamento manuale indietro lento. Vengono eccitate le uscite di indietro e di rallentamento. |
| MANFFW | st_init = 1 st_regoff = 0 posit < maxpos | Manual forward Posizionamento manuale avanti. Viene eccitata l'uscita di avanti. |
| MANFBW | st_init = 1 st_regoff = 0 posit > minpos | Manual backward Posizionamento manuale indietro. Viene eccitata l'uscita di indietro. |
| REGON | st_init = 1 | Regulation ON Abilita la regolazione e l'aggiornamento delle uscite di movimento, nonché tutti i comandi di movimento. Disattiva lo stato st_regoff. |
| REGOFF | st_init = 1 | Regulation OFF Disabilita la regolazione e l'aggiornamento delle uscite di movimento, nonché tutti i comandi di movimento. Solamente l'uscita di freno continua ad essere aggiornata. Attiva lo stato st_regoff. |
| DELCNT | st_init = 1 st_still = 0 | Delta counter Questo comando viene accettato solamente se l'asse è fermo; il conteggio (posizione dell'asse) viene modificato sommandogli algebricamente il valore specificato nella variabile delta. |
| Nome | D | R | A | Condizioni | Descrizione |
|---|---|---|---|---|---|
| cntratio | L | R | R-W | Nessuna | Counter ratio Definisce per quanto vanno moltiplicati gli impulsi del trasduttore in modo che l'acquisizione degli spostamenti venga espressa nell'unità di misura desiderata. Impostando 100000 la variazione del conteggio è di 1 bit per impulso trasduttore. Range valido: 347 ÷ 400000 |
| posit | L | R | R-W | st_init = ON | Actual position È il valore della posizione istantanea dell'asse in unità di misura definite dal parametro cntratio. Valore espresso in unità di misura (Um). Range valido: -999999 ÷ 999999 |
| minpos | L | R | R-W | Nessuna | Minimum position Definisce la minima quota raggiungibile dall'asse; il valore impostato è da considerarsi anche come limite minimo per l'introduzione delle quote di lavoro. Valore espresso in unità di misura (Um). Range valido: -999999 ÷ 999999 |
| maxpos | L | R | R-W | Nessuna | Maximum position Definisce la massima quota raggiungibile dall'asse; il valore impostato è da considerarsi anche come limite massimo per l'introduzione delle quote di lavoro. Valore espresso in unità di misura (Um). Range valido: -999999 ÷ 999999 |
| slowpos | W | R | R-W | Nessuna | Slow position È la distanza dalla quota di posizionamento alla quale viene eccitata l'uscita di rallentamento per concludere il posizionamento alla velocità lenta. Valore espresso in unità di misura (Um). Range valido: 0 ÷ 9999 |
| tollp | W | R | R-W | Nessuna | Positive tolerance È il limite di tolleranza positivo consentito al posizionamento (massimo errore per eccesso). Viene espresso in Um/10 (QPS). Range valido: 0 ÷ 9999 |
| tolln | W | R | R-W | Nessuna | Negative tolerance È il limite di tolleranza negativo consentito al posizionamento (massimo errore per difetto). Viene espresso in Um/10 (QPS). Range valido: 0 ÷ 9999 |
| tinv | W | R | R-W | Nessuna | Direction inversion delay Viene utilizzato per evitare stress meccanici dovuti a troppo rapide inversioni del senso di movimento. Il valore introdotto è espresso in centesimi di secondo. Range valido: 0 ÷ 999 |
| slowdly | W | R | R-W | Nessuna | Slow delay Quando il posizionamento entra nella fascia di rallentamento, l'uscita di movimento viene disattivata per un tempo determinato dal parametro slowpos. L'uscita di rallentamento viene attivata con tempo slowpos/2 prima dell'uscita di movimento. Viene espresso in centesimi di secondo (s/100). Range valido: 0 ÷ 999 |
| tbrake | W | R | R-W | Nessuna | Brake time È il tempo che intercorre, allo start posizionamento, tra lo sblocco del freno (in funzione del parametro breaktype) e l'attivazione delle uscite di movimento. Viene espresso in centesimi di secondo (s/100). Range valido: 0 ÷ 999 |
| overpos | W | R | R-W | Nessuna | Over position Oltrequota per il recupero giochi e/o delta minimo di posizionamento. Se impostato a zero non viene eseguito il recupero giochi. Valore espresso in unità di misura (Um). Range valido: 0 ÷ 9999 |
| bklashmode | B | R | R-W | Nessuna | Backslash mode Seleziona il tipo di recupero giochi: 0=posizionamento senza recupero giochi. 1=posizionamento con recupero giochi avanti. 2=posizionamento con recupero giochi indietro. 3=posizionamento con recupero giochi avanti senza rallentamento. 4=posizionamento con recupero giochi indietro senza rallentamento. Se il parametro è fuori dai limiti ammessi, utilizza per default il modo 0. |
| ninert | B | R | R-W | Nessuna | Inertia number È il numero di fasce d'inerzia in cui si vuole suddividere l'asse. Se viene impostato il valore zero, si considera una sola fascia. Range valido: 1 ÷ 8 |
| maxiner | W | R | R-W | Nessuna | Maximum inertia È il massimo valore di variazione dell'inerzia dopo ogni posizionamento. Se il valore calcolato supera tale parametro, viene segnalato con l'attivazione dello stato st_erin. Se il valore viene posto a zero, il controllo è inibito. Viene espresso in Um/10 (QPS). Range valido: 0 ÷ 9999 |
| toldly | W | R | R-W | Nessuna | Tolerance delay Definisce il tempo che intercorre tra l'arrivo dell'asse nella fascia di tolleranza e la relativa segnalazione di stato. Il valore introdotto è espresso in centesimi di secondo. Range valido: 0 ÷ 9999 |
| inertmode | B | R | R-W | Nessuna | Inertia mode selection Indica il tipo di ricalcolo inerzia eseguito dal device al termine del posizionamento: 0=ricalcolo inerzie disabilitato. 1 = ricalcolo inerzie eseguito solo se il posizionamento si conclude fuori tolleranza. 2=ricalcolo inerzie eseguito ad ogni posizionamento. |
| tool | L | R | R-W | Nessuna | Tool thickness É il valore dello spessore utensile. Questo valore, espresso in Um/10 (QPS), viene sommato alla quota di posizionamento setpos quando viene comandato START. La quota finale dell'asse sarà quindi data da: setpos + tool Range valido: -999999 ÷ 999999 |
| setpos | L | R | R-W | Nessuna | Setted position É la quota di posizionamento impostata. Essa viene posta in esecuzione dal comando START. Se essa viene cambiata durante il posizionamento, l'asse si posziona comunque alla quota precedente. Valore espresso in unità di misura (Um). Range valido: -999999 ÷ 999999 |
| iner01÷iner16 | W | R | R-W | Nessuna | Inertia 01 ÷ 16 value Sono le 16 memorie dei valori di inerzia. Se il parametro dobiner è 0, verranno utilizzate dal device solamente le prime otto (iner01 ÷ iner08). Viene espresso in Um/10 (QPS). |
| dobiner | B | R | R-W | Nessuna | Double inertia Con questo parametro è possibile scegliere di ricalcolare un'inerzia unica per ogni fascia in cui è diviso l'asse oppure di averne due per ogni fascia: una per ogni direzione di arrivo dell'asse. 0=Memoria inerzia di fascia uguale per le due direzioni. 1=Memoria inerzia di fascia distinta per ogni direzione. |
| enstol | B | R | R-W | Nessuna | Enable start in tolerance Abilitazione start con asse in tolleranza: 0 = START in tolleranza disabilitato. Al comando di START lo stato st_sttoll viene abilitato e l'asse rimane fermo. 1 = START in tolleranza abilitato. Al comando di START l'asse esegue un riposizionamento alla quota in uso e lo stato st_sttoll viene disabilitato. |
| prsmode | B | R | R-W | Nessuna | Preset mode Definisce il tipo di ricerca di preset: 0 = Per la ricerca dell'abilitazione impulso di zero, l'asse inizia il movimento, incontra la camma di abilitazione, inverte la direzione ed in lento, sul fronte di discesa relativo al segnale di camma, carica la quota di preset. 1 = Per la ricerca dell'abilitazione impulso di zero, l'asse inizia il movimento, incontra la camma di abilitazione, inverte la direzione ed in lento acquisisce il primo impulso di zero (dopo la disattivazione del segnale di camma). 2 = Non viene attivata la procedura di ricerca preset con movimentazione dell'asse. Il conteggio viene aggiornato alla quota di preset all'attivazione dell'abilitazione impulso di zero. |
| prspos | L | R | R-W | Nessuna | Preset position Definisce il valore che viene caricato sul conteggio con la procedura di ricerca di preset. Valore espresso in unità di misura (Um). Range valido: minpos ÷ maxpos |
| prsdir | B | R | R-W | Nessuna | Preset search direction Definisce la direzione del movimento asse per la ricerca della camma di abilitazione impulso di zero. 0=L'asse esegue la ricerca in avanti, prima in rapido, poi in lento. 1=L'asse esegue la ricerca indietro, prima in rapido, poi in lento. 2= L'asse esegue la ricerca in avanti sempre in lento. 3= L'asse esegue la ricerca indietro sempre in lento. |
| actiner | B | R | R | Nessuna | Actual inertia Indica la fascia di inerzia in uso. Range valido: 0 ÷ 7 |
| delta | L | R | R-W | Nessuna | Delta counter Variabile d'uso come operando dal comando DELCNT. Valore espresso in unità di misura (Um). Range valido: -999999 ÷ 999999 |
| decpt | B | R | R-W | Nessuna | Decimal point Definisce la precisione con la quale si intendono impostare le preselezioni e visualizzare i conteggi relativamente all'asse. Range valido: 0 ÷ 3 |
| unitvel | B | R | R-W | Nessuna | Velocity unit Definisce se l'unità di tempo della velocità è espressa in minuti o secondi. 0 = Um/min 1 = Um/sec |
| frq | L | - | R | Nessuna | Actual frequency É il valore della frequenza istantanea dell'asse, considerando una fase dell'encoder. Valore espresso in Hz. |
| vel | L | - | R | Nessuna | Actual velocity É il valore della velocitá istantanea dell'asse. Il valore viene espresso in Um/s o Um/min in base al parametro unitvel e dipende anche dal parametro decpt. |
| breaktype | B | R | R-W | Nessuna | Brake type É il tipo di logica d'intervento dell'uscita freno. 0 = L'uscita viene eccitata per la frenata. 1 = L'uscita, normalmente eccitata, viene diseccitata per la frenata. Lo stato st_brake segue lo stato elettrico dell'uscita. |
| breaktype | B | R | R-W | Nessuna | Brake type É il tipo di logica d'intervento dell'uscita freno. 0 = L'uscita viene eccitata per la frenata. 1 = L'uscita, normalmente eccitata, viene diseccitata per la frenata. Lo stato st_brake segue lo stato elettrico dell'uscita. |
| slowtype | B | R | R-W | Nessuna | Slow type É il tipo di calcolo del rallentamento 0=fisso con parametro slowpos. 1=proporzionale alla velocità rilevata. 2=proporzionale al quadrato della velocità rilevata. |
| maxvel | L | R | R-W | Nessuna | Maximum velocity Definisce la massima velocità dell'asse. Il valore introdotto è nell'unità di tempo della velocità impostata unitvel. Questo parametro viene utilizzato se slowtype ? 0. |
| maxslow | W | R | R-W | Nessuna | Maximum slowdown É il valore di rallentamento calcolato alla massima velocità dell'asse definita dal parametro maxvel. Questo parametro viene utilizzato se slowtype ? 0. Valore espresso in unità di misura (Um). Range valido: 0 ÷ 9999 |
| minslow | W | R | R-W | Nessuna | Minimum slowdown É il minimo valore di rallentamento che puó essere calcolato. Questo parametro viene utilizzato se slowtype ?0. Valore espresso in unità di misura (Um). Range valido: 0 ÷ 9999 |
| exeslow | W | - | R | Nessuna | Execution slowdown Se il parametro slowtype ¹ 0 indica il valore di rallentamento calcolato dal device in funzione della velocità dell'asse. Valore espresso in unità di misura (Um). |
| Nome | D | R | A | Condizioni | Descrizione |
|---|---|---|---|---|---|
| st_init | F | - | R | Nessuna | Initialization Segnalazione di device inizializzato. 0 = Device non inizializzato. 1 = Device inizializzato. |
| st_cntlock | F | R | R | Nessuna | Counter locked Segnalazione di conteggio asse bloccato. 0 = Conteggio asse sbloccato. 1 = Conteggio asse bloccato |
| st_cntrev | F | R | R | Nessuna | Counter reversed Segnalazione di conteggio asse invertito 0 = Conteggio asse non invertito 1 = Conteggio asse invertito. |
| st_movfwd | F | 0 | R | Nessuna | Forward movement Segnala l'eccitazione dell'uscita di movimento avanti. 0 = Uscita avanti non eccitata. 1 = Eccitazione uscita avanti. |
| st_movbwd | F | 0 | R | Nessuna | Backward movement Segnala l'eccitazione dell'uscita di movimento indietro. 0 = Uscita indietro non eccitata. 1 = Eccitazione uscita indietro. |
| st_movslow | F | 0 | R | Nessuna | Slowdown movement Segnala l'eccitazione dell'uscita di rallentamento. 0 = Uscita rallentamento non eccitata. 1 = Eccitazione uscita rallentamento. |
| st_toll | F | 0 | R | Nessuna | Tolerance Segnalazione di asse in tolleranza rispetto alla quota posta in esecuzione dal comando di START. La segnalazione di asse in tolleranza può essere ritardata tramite il parametro toldly. 0 = Asse non in tolleranza. 1 = Asse in tolleranza. |
| st_brake | F | 0 | R | Nessuna | Brake Segnala l'eccitazione dell'uscita di freno (per l'attivazione di freni o di dispositivi di bloccaggio dell'asse). 0 = Uscita freno non eccitata. 1 = Eccitazione uscita freno. |
| st_movdir | F | 0 | R | Nessuna | Backward direction Segnalazione della direzione del movimento. 0 = Avanti 1 = Indietro. |
| st_still | F | 1 | R | Nessuna | Still Segnalazione di asse fermo. 0 = Asse in movimento. 1 = Asse fermo. |
| st_erin | F | 0 | R | Nessuna | Inertia ricalculation error Segnala un errore di ricalcolo inerzia. L'indicazione si attiva se il ricalcolo dell'inerzia fornisce un valore maggiore del parametro maxiner. 0 = Ricalcolo inerzia corretto. 1 = Ricalcolo inerzia con valori maggiori di maxiner. |
| st_sttoll | F | 0 | R | Nessuna | Start in tolerance Attivo segnala, se il parametro enstol 1 1, che é stato dato un comando di movimento e l'asse era giá in tolleranza sulla quota di traguardo. Lo stato rimane invariato fino al prossimo comando di movimento (START, MANSFW, MANFFW, MANSBW, MANFBW). 0 = Start con asse fuori tolleranza. 1 = Start con asse in tolleranza. |
| st_prsok | F | 0 | R | Nessuna | Preset ok Segnalazione di ricerca di preset asse conclusa correttamente. 0 = Ricerca di preset non ancora conclusa o non eseguita. 1 = Ricerca di preset conclusa correttamente. |
| st_prson | F | 0 | R | Nessuna | Preset Segnalazione di ricerca di preset asse in corso. 0 = Ricerca di preset non in corso. 1 = Ricerca di prest in corso. |
| st_regoff | F | 0 | R | Nessuna | Regulation off Segnala lo stato di disabilitazione delle uscite e dei comandi di posizionamento. 0 = Uscite di movimento abilitate. 1 = Uscite di movimento disabilitate. |
Nessuna limitazione.
;*************************************************************************************
; Nome Modulo: Ex_Oopos.CNF Progetto: Ex_OOPOS2
; Autore: QEM srl Data: 01/05/99
; Sistema: QMove1 / QCL3 Libreria: 1LIB3B04
; Funzionalità: Esempio gestione OOPOS2 Release: 0
;-------------------------------------- Note -----------------------------------------
; [1] - Applicativo di esempio per utilizzo device OOPOS 2
;*************************************************************************************
;-------------------------------------------------------------------------------------
; Definizione Costanti
;-------------------------------------------------------------------------------------
CONST
;-------------------------------------------------------------------------------------
; Definizione Variabili SYSTEM
;-------------------------------------------------------------------------------------
SYSTEM
slQuotaPos L ;Variabile per quota di posizionamento
;-------------------------------------------------------------------------------------
; Definizione Variabili GLOBAL
;-------------------------------------------------------------------------------------
GLOBAL
gfMovMan F ;Flag segnalazione movimenti manuali in
;corso
gfMovAuto F ;Flag segnalazione movimenti automatici
;in corso
;-------------------------------------------------------------------------------------
; Definizione Variabili TIMER
;-------------------------------------------------------------------------------------
TIMER
;-------------------------------------------------------------------------------------
; Definizione DATAGROUP
;-------------------------------------------------------------------------------------
;DATAGROUP
;-------------------------------------------------------------------------------------
; Configurazione Bus
;-------------------------------------------------------------------------------------
BUS
1 1CPUB 02
2 1MIXA 00
3 .
4 .
;-------------------------------------------------------------------------------------
; Definizione Variabili INPUT
;-------------------------------------------------------------------------------------
INPUT
ifAvMan F 2.INP01 ;Ingresso di avanti manuale
ifInMan F 2.INP02 ;Ingresso di indietro manuale
ifStart F 2.INP03 ;Ingresso di START asse
ifStop F 2.INP04 ;Ingresso di STOP asse
;-------------------------------------------------------------------------------------
; Definizione Variabili OUTPUT
;-------------------------------------------------------------------------------------
OUTPUT
ofToll F 2.OUT04 ;Uscita di tolleranza asse
;-------------------------------------------------------------------------------------
; Dichiarazione device interni
;-------------------------------------------------------------------------------------
INTDEVICE
;Nome Tipo TCamp Contatore Inter AbilZero OutAva OutInd OutDir OutMov
Asse OOPOS2 0004 2.CNT01 1 2.INP01 2.OUT01 2.OUT02 X.X X.X
OutRal OutFre
2.OUT03 X.X
END
;-------------------------------------------------------------------------------------
; Nome File: TASK_00.MOD
; Progetto: EX_OOPOS2
; Descrizione: Gestione Posizionamento
;-------------------------------------------------------------------------------------
;-------------------------------------------------------------------------------------
; Operazioni di Inizializzazione Asse
;-------------------------------------------------------------------------------------
Asse:cntratio = 100000 ;Risoluz.encoder = Spazio in 1 giro
;encoder(Um) / impulsi giro encoder
Asse:maxpos = 999999 ;Quota massima
Asse:minpos = -999999 ;Quota minima
Asse:slowpos = 100 ;Quota di rallentamento
Asse:tollp = 10 ;Tolleranza positiva
Asse:tolln = 50 ;Tolleranza negativa
Asse:tinv = 50 ;Tempo di inversione
Asse:slowdly = 50 ;Tempo di rallentamento
Asse:tbrake = 30 ;Tempo di intervento freno
Asse:overpos = 0 ;Oltrequota recupero giochi
Asse:bklashmode = 0 ;Tipo recupero giochi
Asse:ninert = 1 ;Numero fasce di inerzia
Asse:maxiner = 100 ;Massima inerzia ricalcolata
Asse:toldly = 50 ;Tempo ritardo segnalazione tolleranza
Asse:inertmode = 1 ;Tipo di ricalcolo inerzia
Asse:tool = 0 ;Spessore lama
Asse:dobiner = 0 ;Abilitazione inerzie sdoppiate
;(avanti e indietro)
Asse:enstol = 0 ;Abilitazione START con l'asse in
;tolleranza
Asse:prsmode = 0 ;Tipo di ricerca di preset
Asse:prspos = 0 ;Quota di preset
Asse:prsdir = 0 ;Direzione della ricerca di preset
Asse:decpt = 1 ;Cifre decimali
Asse:unitvel = 1 ;Unità di tempo della velocità
Asse:breaktype = 0 ;Logica di intervento del freno
Asse:slowtype = 0 ;Tipo di calcolo rallentamento
Asse:maxvel = 1000 ;Velocità massima
Asse:maxslow = 8 ;Rallentamento calcolato massimo
Asse:minslow = 80 ;Rallentamento calcolato minimo
INIT Asse ;Inizializza il device
WAIT Asse:st_init ;Attendi che il device sia inizializzato
CNTUNLOCK Asse ;Sblocca conteggio
WAIT NOT Asse:st_cntlock ;Attendi che il conteggio sia sbloccato
CNTDIR Asse ;Imposta il senso del conteggio
WAIT NOT Asse:st_cntrev ;Attendi che sia impostato il senso del
;conteggio
REGON Asse ;Abilita la regolazione
WAIT NOT Asse:st_regoff ;Attendi l'abilitazione alla regolazione
IF (slQuotaPos EQ 0) ;Nel caso in cui la quota di posizionamento
;dell'asse sia zero
slQuotaPos = 2000 ;Imposta una quota di posizionamento
ENDIF
;-------------------------------------------------------------------------------------
; Operazioni di Posizionamento
; ------------------------------ variabili utilizzate -------------------------------
; slQuotaPos: Variabile impostabile che rappresenta la quota di posizionamento dell'asse
; -------------------------------- flag utilizzati ----------------------------------
; gfMovMan: movimento manuale in corso
; gfMovAuto: Movimento automatico in corso
;-------------------------------------------------------------------------------------
MAIN:
;-------------------------------------------------------------------------------------
; Gestione uscite
;-------------------------------------------------------------------------------------
ofToll = Asse:st_toll ;Imposto l'uscita di tolleranza come lo
;stato di tolleranza
;-------------------------------------------------------------------------------------
; Gestione movimenti automatici
;-------------------------------------------------------------------------------------
IF ifStart ;Attende l'ingresso di START
IF NOT gfMovMan ;Controlla che non ci siano movimenti
;manuali
IF Asse:st_still ;Controlla che l'asse sia fermo
Asse:setpos = slQuotaPos ;Imposta la quota di posizionamento
START Asse ;Esegue lo start dell'asse
gfMovAuto = 1 ;Segnala movimento automatico in corso
ENDIF
ENDIF
ENDIF
IF ifStop ;Attende l'ingresso di STOP
IF NOT Asse:st_still ;Controlla che l'asse NON sia fermo
STOP Asse ;Esegue lo stop dell'asse
ENDIF
ENDIF
IF gfMovAuto ;Controlla segnalazione movimento
;automatico in corso
IF Asse:st_still ;Controlla che l'asse sia fermo
gfMovAuto = 0 ;Resetta stato di movimento Automatico
ENDIF
ENDIF
;-------------------------------------------------------------------------------------
; Gestione movimenti manuali
;-------------------------------------------------------------------------------------
IF ifAvMan ;Attende l'ingresso di movimento manuale
IF NOT (gfMovAuto OR gfMovMan) ;Controlla che non ci siano movimenti
;autometici o manuali
IF Asse:st_still ;Controlla che l'asse sia fermo
MANFFW Asse ;Avanti asse in manuale
gfMovMan = 1 ;Segnala movimento manuale in corso
ENDIF
ENDIF
ENDIF
IF ifInMan ;Attende l'ingresso di movimento manuale
IF NOT (gfMovAuto OR gfMovMan) ;Controlla che non ci siano movimenti
;autometici o manuali
IF Asse:st_still ;Controlla che l'asse sia fermo
MANFBW Asse ;Avanti asse in manuale
gfMovMan = 1 ;Segnala movimento manuale in corso
ENDIF
ENDIF
ENDIF
IF gfMovMan ;Se l'asse si muove in manuale
IF NOT (ifAvMan OR ifInMan) ;Se gli ingressi di avanti e indietro
;manuale sono OFF
STOP Asse ;Ferma l'asse
gfMovMan = 0 ;Togli la segnalazione di asse in
;movimento manuale
ENDIF
ENDIF
;-------------------------------------------------------------------------------------
; Operazioni finali
;-------------------------------------------------------------------------------------
WAIT 1
JUMP MAIN
END